package com.yima.baseproj.module.app.equipment_entry;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yima.baseproj.module.app.equipment_entry.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EquipmentEntryMapper extends BaseMapper<EquipmentEntryEntity> {

    List<Map> findBySearchVo(@Param("searchVo") EquipmentEntrySearchModel searchVo);

    Page<Map> findBySearchVo(@Param("page") Page page,
                             @Param("searchVo") EquipmentEntrySearchModel searchVo);


    List<EquipmentEntryEntity> listDeviceNo();

    int selectByDeviceNo(String deviceNo);

    List<EquipmentEntryEntity> findAll();

    EquipmentEntryEntity findByDeviceNo(String deviceNo);
}
